package day02;

import com.sun.xml.internal.bind.v2.runtime.output.SAXOutput;

import java.math.BigDecimal;

public class DataTypeDemo {
    public static void main(String[] args) {
        /*
       long a =1000000000;
       long b =3000000000L;
       long c =365L*24*60*60*1000;
        System.out.println(c);
        long d = 30000000000000000L*2;
        System.out.println(d);
        long e = 20000000000L*2*10;
        System.out.println(e);
        /*
        double qq =10.222;
        double ww =22.222;
        float ee =33.333F;
        double qqq=5.5,www=4.6;
        System.out.println(qqq-www);
        double aa=6.66,ss=3.45;
        System.out.println(aa-ss);
        double rr=9.99999,rrr=3.1415926;
        System.out.println(rr-rrr);
        */
        /*
        boolean a=true;
        boolean b=false;
        */
        /*
        char c1='1';
        char c2='f';
        char c3='五';
        char c4=' ';
        char a1=97;
        System.out.println(a1);
        char a2='\\';
        System.out.println(a2);
         */
        /*
        int a=5;
        long b=a;
        int c=(int)b;//强制转换
        long d=5;//自动转换类型
        double e=5;//自动换类型
        System.out.println(e);
        long f=10000000000L;
        int g=(int)f;
        System.out.println(g);//强转有可能发生溢出
        double h=25.978;
        int i=(int)h;
        System.out.println(i);//强转有可能丢失精度

         */
        byte b1=5;
        byte b2=6;
        byte b3=(byte)(b1+b2);
        System.out.println('2'+'2');
        System.out.println('2');
        System.out.println(2+'2');
        System.out.println('2'+2);
        System.out.println('2'+'2'+'2');

    }
}
